<nav class="navbar navbar-expand-lg navbar-dark bg-primary shadow sticky-top" id="navbarMain">
    <div class="container">
        <div>
            <a class="navbar-brand" href="{{ .Site.BaseURL | relLangURL }}">
                {{ .Site.Title }}
            </a>
        </div>
        <button class="navbar-toggler navbar-toggler-right collapsed" type="button" data-toggle="collapse" data-target="#navbarMainCollapse" aria-controls="navbarMainCollapse" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarMainCollapse">
          <ul class="navbar-nav ml-auto">
              {{- with .Site.Menus.shortcuts}}
                    {{- range sort . "Weight"}}
                        <li class="nav-item">
                            <a class="nav-link" href="{{.URL}}" {{if eq $.Site.Params.menushortcutsnewtab true}}target="_blank"{{end}}>
                              {{safeHTML .Name}}
                            </a>
                        </li>
                    {{- end}}
              {{- end}}
          </ul>
        </div>
    </div>
</nav>
